<template>
  <div>
      <button @click="handleClick">点击我</button>
      <p>函数绑定值: {{getName()}}</p>
  </div>
</template>

<script>
export default {
    setup() {

        function handleClick() {
            console.log("我被点击了！");
        }

        let firstName = "Hydra";
        let lastName = "Feng";

        function getName() {
            return firstName + " " + lastName;
        }

        return {handleClick,getName};
    }
}
</script>

<style>

</style>